<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/tabooList.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('tabooList_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">includes/tabooList.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="tabooExpire_8h_source.html">tabooExpire.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for tabooList.h:</div>
<div class="dyncontent">
<div class="center"><img src="tabooList_8h__incl.png" border="0" usemap="#includes_2tabooList_8h" alt=""/></div>
<map name="includes_2tabooList_8h" id="includes_2tabooList_8h">
<area shape="rect" id="node3" href="tabooExpire_8h.html" title="tabooExpire.h" alt="" coords="119,83,220,112"/><area shape="rect" id="node5" href="edgeID_8h.html" title="edgeID.h" alt="" coords="91,160,165,189"/></map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="tabooList_8h__dep__incl.png" border="0" usemap="#includes_2tabooList_8hdep" alt=""/></div>
<map name="includes_2tabooList_8hdep" id="includes_2tabooList_8hdep">
<area shape="rect" id="node3" href="add_8h.html" title="includes/add.h" alt="" coords="30,315,137,344"/><area shape="rect" id="node5" href="operations_8h.html" title="includes/operations.h" alt="" coords="785,83,929,112"/><area shape="rect" id="node18" href="remove_8h.html" title="includes/remove.h" alt="" coords="161,315,289,344"/><area shape="rect" id="node20" href="swap_8h.html" title="includes/swap.h" alt="" coords="673,315,787,344"/><area shape="rect" id="node29" href="tabooState_8h.html" title="includes/tabooState.h" alt="" coords="217,160,363,189"/><area shape="rect" id="node7" href="solution_8h.html" title="includes/solution.h" alt="" coords="453,160,583,189"/><area shape="rect" id="node16" href="ltm_8h.html" title="includes/ltm.h" alt="" coords="341,469,442,499"/><area shape="rect" id="node9" href="los_8h.html" title="includes/los.h" alt="" coords="217,237,318,267"/><area shape="rect" id="node12" href="stm_8h.html" title="includes/stm.h" alt="" coords="313,315,419,344"/><area shape="rect" id="node22" href="graphbmp-tools_8h.html" title="includes/graphbmp&#45;tools.h" alt="" coords="494,237,667,267"/><area shape="rect" id="node14" href="LTMConfiguration_8h.html" title="includes/LTMConfiguration.h" alt="" coords="233,392,419,421"/></map>
</div>
</div>
<p><a href="tabooList_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTabooList.html">TabooList</a></td></tr>
<tr><td colspan="2"><h2><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#a16474a70fadde17cb52d39eb0e155f80">TabooMat</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structTabooList.html">TabooList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#a0207650022abd57e4b59cd14522c668a">TabooList</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structTabooList.html">TabooList</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#abf3b03b1d02997b40f860bbd39585d0c">initTabooList</a> (int *_N, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#a82902046cd8068e7cfaacb7f743629ec">freeTabooList</a> (<a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> ptl)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#ac4d0d4ca23c79d6f5e7f2b96632eab5a">resetTabooList</a> (<a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> ptl, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> resetvalue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#af83ae52ead1176cd3fdd3b4255411d50">setTaboo</a> (<a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> ptl, <a class="el" href="edgeID_8h.html#a73a3d93dc3a3c49a3e5ec5ec758e309f">PedgeID</a> edge, int tenure, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#a1d90532c5f8394075206b4d30d233bff">isEdgeTaboo</a> (<a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> p_tabooList, <a class="el" href="edgeID_8h.html#a73a3d93dc3a3c49a3e5ec5ec758e309f">PedgeID</a> p_edge, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#a9ae04f9e054c6127754b01ae31fc1c31">getEdgeTenure</a> (<a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> p_tabooList, <a class="el" href="edgeID_8h.html#a73a3d93dc3a3c49a3e5ec5ec758e309f">PedgeID</a> p_edge, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#ad12e8922507bfea10b6e9dfefbd6ebcc">printTabooList</a> (FILE *f, <a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> ptl)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#a37247571018795912c43319dca305898">printTabooListExpirations</a> (FILE *f, <a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> ptl, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now, int k)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#abe478d7773ae763650024e1db80132fa">printComparationTabooList</a> (FILE *f, <a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> ptl, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#af50f803f1691db5992547a1fb9538c51">printTabooListTenures</a> (FILE *f, <a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> ptl, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now, int k)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tabooList_8h.html#a2ac5bfba3db64afa8d25b0894efcdc0f">printTabooListAsSet</a> (FILE *f, <a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> ptl, <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a> now, int k)</td></tr>
</table>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="a540c4d1dedf8f8cbe13a89e970c411bb"></a><!-- doxytag: member="tabooList.h::PtabooList" ref="a540c4d1dedf8f8cbe13a89e970c411bb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structTabooList.html">TabooList</a>* <a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0207650022abd57e4b59cd14522c668a"></a><!-- doxytag: member="tabooList.h::TabooList" ref="a0207650022abd57e4b59cd14522c668a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structTabooList.html">TabooList</a>  <a class="el" href="structTabooList.html">TabooList</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a16474a70fadde17cb52d39eb0e155f80"></a><!-- doxytag: member="tabooList.h::TabooMat" ref="a16474a70fadde17cb52d39eb0e155f80" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>** <a class="el" href="tabooList_8h.html#a16474a70fadde17cb52d39eb0e155f80">TabooMat</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Una matrice di singoli Taboo. </p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a82902046cd8068e7cfaacb7f743629ec"></a><!-- doxytag: member="tabooList.h::freeTabooList" ref="a82902046cd8068e7cfaacb7f743629ec" args="(PtabooList ptl)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooList_8h.html#a82902046cd8068e7cfaacb7f743629ec">freeTabooList</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td>
          <td class="paramname"><em>ptl</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>dealloca in modo corretto la taboolist passata come parametro</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>ptl non NULL</li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">taboolist</td><td>la taboolist da deallocare dalla memoria </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9ae04f9e054c6127754b01ae31fc1c31"></a><!-- doxytag: member="tabooList.h::getEdgeTenure" ref="a9ae04f9e054c6127754b01ae31fc1c31" args="(PtabooList p_tabooList, PedgeID p_edge, TabooExpire now)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="tabooList_8h.html#a9ae04f9e054c6127754b01ae31fc1c31">getEdgeTenure</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td>
          <td class="paramname"><em>p_tabooList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="edgeID_8h.html#a73a3d93dc3a3c49a3e5ec5ec758e309f">PedgeID</a>&#160;</td>
          <td class="paramname"><em>p_edge</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>now</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="abf3b03b1d02997b40f860bbd39585d0c"></a><!-- doxytag: member="tabooList.h::initTabooList" ref="abf3b03b1d02997b40f860bbd39585d0c" args="(int *_N, TabooExpire now)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a> <a class="el" href="tabooList_8h.html#abf3b03b1d02997b40f860bbd39585d0c">initTabooList</a> </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>_N</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>now</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>costruisce una nuova taboolist e inizializza tutti i taboo a una certa data di espirazione. Generalmente quindi il parametro now sarà pari a 0 cioè alla prima iterazione di STM, ma in modifiche dell'algoritmo si potrebbe volerlo impostare pari a qualcos'altro. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">_N</td><td>indica un puntatore ad una cella di memoria in cui risiede il numero dei nodi del grafo </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a1d90532c5f8394075206b4d30d233bff"></a><!-- doxytag: member="tabooList.h::isEdgeTaboo" ref="a1d90532c5f8394075206b4d30d233bff" args="(PtabooList p_tabooList, PedgeID p_edge, TabooExpire now)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="tabooList_8h.html#a1d90532c5f8394075206b4d30d233bff">isEdgeTaboo</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td>
          <td class="paramname"><em>p_tabooList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="edgeID_8h.html#a73a3d93dc3a3c49a3e5ec5ec758e309f">PedgeID</a>&#160;</td>
          <td class="paramname"><em>p_edge</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>now</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>controlla se l'edge passato sia taboo o no. TRUE se taboo.timestamp+taboo.tenure&lt;=currentTimeStamp, FALSE altrimenti.</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>ptl non NULL </li>
<li>edge non NULL </li>
<li>edge deve avere i&lt;j</li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">taboolist</td><td>indica la taboo list in cui controllare l'arco </td></tr>
    <tr><td class="paramname">edge</td><td>indica l'arco da controllare </td></tr>
    <tr><td class="paramname">timestamp</td><td>indica l'iterazione in cui si trova l'algoritmo </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TRUE l'edge e' ancora taboo, FALSE altrimenti </dd></dl>

</div>
</div>
<a class="anchor" id="abe478d7773ae763650024e1db80132fa"></a><!-- doxytag: member="tabooList.h::printComparationTabooList" ref="abe478d7773ae763650024e1db80132fa" args="(FILE *f, PtabooList ptl, TabooExpire now)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooList_8h.html#abe478d7773ae763650024e1db80132fa">printComparationTabooList</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td>
          <td class="paramname"><em>ptl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>now</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>DEPRECATA. stampa una comparazione tra tutti i taboo presenti nella taboo list e il clock passato come parametro, riportando anche TRUE qualora il taboo sia ancora valido, FALSE altrimenti</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>il file su cui vera' stampato il taboo </td></tr>
    <tr><td class="paramname">taboolist</td><td>la lista da cui reperire taboos </td></tr>
    <tr><td class="paramname">clock</td><td>il clock dell'algoritmo </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ad12e8922507bfea10b6e9dfefbd6ebcc"></a><!-- doxytag: member="tabooList.h::printTabooList" ref="ad12e8922507bfea10b6e9dfefbd6ebcc" args="(FILE *f, PtabooList ptl)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooList_8h.html#ad12e8922507bfea10b6e9dfefbd6ebcc">printTabooList</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td>
          <td class="paramname"><em>ptl</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Stampa la matrice associata a una tabooList, dove ogni elemento m[i][j] rappresenta la data di espirazione dell'arco m[i][j].</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>f aperto in scrittura </li>
<li>ptl non NULL</li>
</ul>
</dd></dl>
<dl class="post"><dt><b>Postcondition:</b></dt><dd><ul>
<li>f viene alterato scrivendo sopra caratteri</li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>il file su cui scrivere la rappresentazione testuale </td></tr>
    <tr><td class="paramname">taboolist</td><td>la taboo list da stampare </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2ac5bfba3db64afa8d25b0894efcdc0f"></a><!-- doxytag: member="tabooList.h::printTabooListAsSet" ref="a2ac5bfba3db64afa8d25b0894efcdc0f" args="(FILE *f, PtabooList ptl, TabooExpire now, int k)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooList_8h.html#a2ac5bfba3db64afa8d25b0894efcdc0f">printTabooListAsSet</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td>
          <td class="paramname"><em>ptl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>now</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Stampa la taboo list come un insieme di archi vietati. Formato più vicino a quello propriamente "a lista"</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>f aperto in scrittura (per esempio "w" o in "a") </li>
<li>ptl non NULL </li>
<li>k compreso tra [0;K] </li>
</ul>
</dd></dl>
<dl class="post"><dt><b>Postcondition:</b></dt><dd><ul>
<li>il file viene alterato scrivendoci sopra una visione umana della tabooList</li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>il file su cui scrivere la rappresentazione della taboo List </td></tr>
    <tr><td class="paramname">ptl</td><td>un riferimento alla taboo List da stmapare </td></tr>
    <tr><td class="paramname">now</td><td>il numero di iterazioni globali a cui l'algoritmo e' arrivato in questo momento </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a37247571018795912c43319dca305898"></a><!-- doxytag: member="tabooList.h::printTabooListExpirations" ref="a37247571018795912c43319dca305898" args="(FILE *f, PtabooList ptl, TabooExpire now, int k)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooList_8h.html#a37247571018795912c43319dca305898">printTabooListExpirations</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td>
          <td class="paramname"><em>ptl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>now</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af50f803f1691db5992547a1fb9538c51"></a><!-- doxytag: member="tabooList.h::printTabooListTenures" ref="af50f803f1691db5992547a1fb9538c51" args="(FILE *f, PtabooList ptl, TabooExpire now, int k)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooList_8h.html#af50f803f1691db5992547a1fb9538c51">printTabooListTenures</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td>
          <td class="paramname"><em>ptl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>now</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Stampa la matrice associata a una tabooList, dove ogni elemento m[i][j] rappresenta il numero di iterazioni ancora vietate dell'arco m[i][j].</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">f</td><td>il file su cui scrivere la rappresentazione della taboo List </td></tr>
    <tr><td class="paramname">ptl</td><td>un riferimento alla taboo List da stmapare </td></tr>
    <tr><td class="paramname">now</td><td>il numero di iterazioni globali a cui l'algoritmo e' arrivato in questo momento </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ac4d0d4ca23c79d6f5e7f2b96632eab5a"></a><!-- doxytag: member="tabooList.h::resetTabooList" ref="ac4d0d4ca23c79d6f5e7f2b96632eab5a" args="(PtabooList ptl, TabooExpire resetvalue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooList_8h.html#ac4d0d4ca23c79d6f5e7f2b96632eab5a">resetTabooList</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td>
          <td class="paramname"><em>ptl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>resetvalue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>resetta ogni valore contenuto in questa taboolist al valore passato come parametro</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>ptl non NULL </li>
</ul>
</dd></dl>
<dl class="post"><dt><b>Postcondition:</b></dt><dd><ul>
<li>all'interno di tm sono specificati solo valori uguali a resetvalue</li>
</ul>
</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ptl</td><td>la taboolist da modificare </td></tr>
    <tr><td class="paramname">resetvalue</td><td>il valore da sostituire in ogni cella specificata da tm </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af83ae52ead1176cd3fdd3b4255411d50"></a><!-- doxytag: member="tabooList.h::setTaboo" ref="af83ae52ead1176cd3fdd3b4255411d50" args="(PtabooList ptl, PedgeID edge, int tenure, TabooExpire now)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="tabooList_8h.html#af83ae52ead1176cd3fdd3b4255411d50">setTaboo</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="tabooList_8h.html#a540c4d1dedf8f8cbe13a89e970c411bb">PtabooList</a>&#160;</td>
          <td class="paramname"><em>ptl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="edgeID_8h.html#a73a3d93dc3a3c49a3e5ec5ec758e309f">PedgeID</a>&#160;</td>
          <td class="paramname"><em>edge</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>tenure</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tabooExpire_8h.html#a03a425df65af050afbb5cab3c16f4263">TabooExpire</a>&#160;</td>
          <td class="paramname"><em>now</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>imposta il valore di un taboo all'interno della TL. Se il particolare arco possedeva gia' un taboo, il piu' vecchio viene scartato.</p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd><ul>
<li>ptl non NULL </li>
<li>edge non NULL </li>
<li>edge ha i&lt;j</li>
</ul>
</dd></dl>
<dl class="post"><dt><b>Postcondition:</b></dt><dd>all'interno della taboolist alle coordinate di edge esiste la somma tra tenure e now</dd></dl>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">taboolist</td><td>indica la lista che deve accogliere il nuovo taboo </td></tr>
    <tr><td class="paramname">edge</td><td>indica l'arco coinvolto nel taboo </td></tr>
    <tr><td class="paramname">tenure</td><td>indica la tenure a cui l'edge e' sottoposto </td></tr>
    <tr><td class="paramname">timestamp</td><td>indica l'iterazione dell'algoritmo in cui questo taboo e' starto creato. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="tabooList_8h.html">tabooList.h</a>      </li>

    <li class="footer">Generated on Thu Jun 27 2013 11:34:37 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
